Platform Explorer / Nuxeo Platform 11.3

Component org.nuxeo.ecm.platform.suggestbox.actions

Requirements

Resolution Order

633
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<component name="org.nuxeo.ecm.platform.suggestbox.actions">

  <require>org.nuxeo.ecm.platform.actions</require>

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="actions">

    <documentation>
      Disable the default simple search from Nuxeo and adds a
      suggestion search box instead.
    </documentation>

    <!-- disable suggest box for now, see NXP-15081 -->
    <action id="simple_search_box" enabled="false" />

    <action id="suggest_search_box" order="1" type="template">
      <category>SEARCH_ACTIONS</category>
      <filter-id>isSearchEnabled</filter-id>
      <properties>
        <property name="template">/search/suggestbox.xhtml</property>
        <property name="disableMultipartForm">true</property>
        <property name="minChars">1</property>
        <property name="multiple">false</property>
        <property name="operationId">Search.SuggestersLauncher</property>
        <property name="placeholder">label.suggestion.placeholder</property>
        <property name="readonly">false</property>
        <property name="selectionFormatter">nuxeo.suggestbox.selectedFormatter</property>
        <property name="suggestionFormatter">nuxeo.suggestbox.suggestedFormatter</property>
        <property name="onAddEntryHandler">nuxeo.suggestbox.entryHandler</property>
        <property name="autocomplete">true</property>
        <property name="dropdownCssClass">nx-header-s2-dd</property>
        <property name="containerCssClass">nx-header-s2-ct</property>
        <property name="width">300px</property>
        <property name="translatePlaceholder">true</property>
        <property name="onEnterKeyHandler">nxSuggestHandleEnterKey</property>
      </properties>
    </action>

  </extension>

</component>